package com.example.wj.service;

import com.example.wj.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

public interface UserService {

    User insert(User user);

    User update(User user);

    boolean deleteById(int id);

    User queryById(int id);

    Page<User> queryByPage(User user, PageRequest pageRequest);

    User checkUserInfo(String username, String password);
}
